<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>注册</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-offset-3 col-md-6">
            <form class="form-horizontal" method="post" action="/register">
                <span class="heading">用户注册</span>
                <div class="form-group">
                    <input type="text" class="form-control" name="name" placeholder="用户名" required>
                </div>
                <div class="form-group help">
                    <input type="password" class="form-control" name="password" placeholder="密码" required>
                </div>
                <div class="form-group help">
                    <input type="password" class="form-control" name="password1" placeholder="确认密码" required>
                </div>
                <div class="form-group help">
                    <label class="checkbox-inline">选择权限（可多选）：</label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="roles" value="1"> admin
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="roles" value="2"> student
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="roles" value="3"> teacher
                    </label>
                </div>
                <div class="form-group">
                    <button class="btn btn-default" onclick="window.location.href='/login'" style="float: left;">登陆</button>
                    <button class="btn btn-default" type="submit">注册</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>